Page({
  data: {
    tempFilePath: "",
  },

  onTap() {
    wx.chooseMedia({
      count: 1,
      success: (res) => {
        console.log("res", res);
        const tempFilePath = res.tempFiles[0].tempFilePath;

        this.setData({ tempFilePath });
      },
    });
  },
});
